{* Smarty block element for creating Cronjob overview pages. Following variables have to be given by the including template to create the list elements: - $list_elements: Array of elements that should be displayed in the list. Has to contain following keys: - task: Should be something like "deleteLogs", "deleteGuestAccounts", etc - schedule: Information about the configured schedule - name: Name of the entry - status: Defines the status of the task. Can be something like "inactive", "active", "warning", "error" If $list_elements is empty a notification is shown instead. Example: {include file="get_usermod:cronjobs/partial/overview_task_list_element.html" title = $title list_elements = $list_elements} *} {block name="admin_cronjob_partial_overview_list_element"}
{block name="admin_cronjob_partial_overview_list_element_heading"}
{block name="admin_cronjob_partial_overview_list_element_heading_title"}

### {$txt.sub_title_tasks}

{/block}
{/block} {if $cronjobs} {block name="admin_cronjob_partial_overview_list_element_container"}
{block name="admin_cronjob_partial_overview_list_element_list"}

{foreach $cronjobs as $cronjob} {block name="admin_cronjob_partial_overview_list_element_list_item"}
- {block name="admin_cronjob_partial_overview_list_element_list_item_icon"} {/block} {block name="admin_cronjob_partial_overview_list_element_list_item_name"} {$cronjob.title} {if $cronjob.status === 'inactive'} {$txt.status_inactive} {elseif $cronjob.status === 'active'} {$txt.status_active} {elseif $cronjob.status === 'warning'} {$txt.status_active} {elseif $cronjob.status === 'error'} {$txt.status_active} {else} {$txt.status_active} {/if} {/block} {block name="admin_cronjob_partial_overview_list_element_list_item_actions"} {block name="admin_cronjob_partial_overview_list_element_list_item_actions_show_logs"} {/block} {block name="admin_cronjob_partial_overview_list_element_list_item_actions_job_edit"} {/block} {/block}
{/block} {/foreach}

{/block}
{/block} {else} {block name="admin_cronjob_partial_overview_list_element_empty_list"}

- {$txt.no_jobs}

{/block} {/if}
{/block}